package com.jh.user.repository.freeQuick;

import com.jh.user.pojo.freeQuick.PayOrder;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

/**
 * @author Yichuan
 * @version 1.0
 */
@Repository
public interface PayOrderRepository extends JpaRepository<PayOrder, Long>,
        JpaSpecificationExecutor<PayOrder> {

    PayOrder findByMerchantIdAndOutSerialNo(String merchantId, String outSerialNo);

    PayOrder findByMerchantNoAndOrderNo(String merchantNo, String orderNo);
}
